package com.lxj.test_stomp_websocket.websocket;

import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.messaging.simp.annotation.SendToUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;


@Controller
public class MessageController {

    @SendTo("/greeting")
    public String messageListener(@PathVariable String username) {
        return "haha";
    }

    @SendToUser
    public void sendToUser() {

    }
}
